import { CoolController, BaseController } from '@cool-midway/core';
import { Get, Inject } from '@midwayjs/core';
import { BaseSysDashboardService } from '../../../service/sys/dashboard';

/**
 * 描述
 */
@CoolController()
export class BaseSysDashboardController extends BaseController {
    @Inject()
    baseSysDashboardService: BaseSysDashboardService;

    /**
     * 系统信息
     */
    @Get("/dashboardInfo")
    async dashboardInfo() {
        return this.ok(await this.baseSysDashboardService.getDashboardInfo());
    }
}
